﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using Language_Editor;

namespace TestWinform
{
    public partial class PresentationForm : Telerik.WinControls.UI.RadForm
    {
        LanguageManager manager;
        public PresentationForm()
        {
            InitializeComponent();
        }

        private void Btn_ChangeLanguage_Click(object sender, EventArgs e)
        {
            if (manager.CurrentLanguage.Name.Equals("en-GB"))
                manager.CurrentLanguage = new System.Globalization.CultureInfo("da-DK");
            else
                manager.CurrentLanguage = new System.Globalization.CultureInfo("en-GB");
                manager.changeMyLanguage(this);
        }
    }
}
